package com.fgba.express.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 角色菜单映射表
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_role_menu_mapping")
@ApiModel(value = "RoleMenuMapping对象", description = "角色菜单映射表")
public class RoleMenuMapping implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id_", type = IdType.AUTO)
    protected Long id;

    @ApiModelProperty(value = "角色ID（外键）")
    private Long roleId;

    @ApiModelProperty(value = "菜单ID（外键）")
    private Long menuId;

}
